﻿using Fozzy;
using Fozzy.Family;
using System.Collections.Generic;
using System.Linq;

namespace Fozzy.Family
{
    public class Adult                          : Slice
    {
        #region Properties
        #endregion

        #region Constructors

            /// <summary>
            /// Empty constructor is needed for serialization
            /// </summary>
            public Adult()                      : base(21,40)
            { }

        #endregion


        /// <summary>
        /// Enumeration of the person's age group
        /// </summary>
        //public enum AgeGroup
        //{
        //    Unknown, Youth, Adult, MiddleAge, Senior
        //}

        //[XmlIgnore]
        //public AgeGroup AgeGroup
        //{
        //    get
        //    {
        //        AgeGroup ageGroup = AgeGroup.Unknown;

        //        if (this.Age.HasValue)
        //        {
        //            // The AgeGroup enumeration is defined later in this file. It is up to the Person
        //            // class to define the ages that fall into the particular age groups
        //            if (this.Age >= 0 && this.Age < 20)
        //                ageGroup = AgeGroup.Youth;
        //            else if (this.Age >= 20 && this.Age < 40)
        //                ageGroup = AgeGroup.Adult;
        //            else if (this.Age >= 40 && this.Age < 65)
        //                ageGroup = AgeGroup.MiddleAge;
        //            else
        //                ageGroup = AgeGroup.Senior;
        //        }
        //        return ageGroup;
        //    }
        //}
    }
}
